x = 1
print(id(x))  # shows the address of the memory location of x
x += 1
print(id(x))  # shows the address of the memory location of x
# shows the address of the memory location of x
# this should be different from the first one because
# this variable is immutable
# if an variable is immutable, a new memory location must be assigned because the value has changed
bool_1 = True
print(id(bool_1))
bool_1 = not bool_1
print(id(bool_1))
# strings,bools and numbers are immutable
y = [1, 2, 3]  # this variable is mutable
print(y, id(y))
y.append(4)
print(y, id(y))  # the id should be the same as the first one
